package com.iss.view.Customer;

import com.iss.view.view.Window;

import java.util.Scanner;

public class CustomerWindow extends Window {
    @Override
    public String print() {
        Scanner scanner = new Scanner(System.in);
        String customerName="";
        String phoneNO="";

        System.out.println("添加客人信息");
        System.out.println("请输入客人姓名：");
        customerName = scanner.next();
        System.out.println("请输入联系电话：");
        phoneNO = scanner.next();

        CustomerInfo.CURRENT_CUSTOMER.setCustomerName(customerName);
        CustomerInfo.CURRENT_CUSTOMER.setPhoneNO(phoneNO);

        return "info";
    }

    @Override
    public Window getNextWindow(String cmd) {
        return null;
    }
}
